package com.bocom.dao;

import org.springframework.stereotype.Repository;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;

import com.bocom.entity.User;

@Repository
public class UserDao {
	
/*	@Resource
	private User user;*/
	
	
    
	public User selectByUsername(String username) {
		
		// admin
		if ("admin".equals(username)) {
			User user = new User();
			user.setPassword("admin");
			user.setPassword("123");
			return user;
		}
		
		return null;
	}
}
